package com.best.result;

/**
 * @author yangruyi
 * @date 2021/3/10
 */
public enum ResultCodeEnum {
    // 成功
    SUCCESS(true, 20000,"成功"),
    // 未知错误
    UNKNOWN_REASON(false, 20001, "未知错误"),
    USERNAME_REPEATED(false,20002,"用户名重复"),
    USERNAME_ERROR(false,20003,"用户名错误"),
    PASSWORD_ERROR(false,20004,"密码错误");
    private Boolean success;
    private Integer code;
    private String message;

    private ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
